
#ifndef NEXTTETRISBOX_H
#define NEXTTETRISBOX_H

#include<QWidget>
#include<QPaintEvent>
#include<QPen>
#include<QBrush>
#include<QPainter>

#include"tetris.h"

#define RESTX (MAXX-NEXTMAXX)/2       //表示下一个方块的初始横向和纵向位置
#define RESTY 4


class nexttetrisbox:public QWidget
{
    Q_OBJECT
public:
   explicit  nexttetrisbox(QWidget*parent =nullptr);   //表示下一个方块的基本信息
    void updateNextTetris(tetris tetris);              //更新下一个的数据和视图
   void paintEvent(QPaintEvent * event);               //绘制视图
signals:
   public slots:
private :
       Block nextBlock;

};

#endif // NEXTTETRISBOX_H
